home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
qbprog.EXE
/
ROMENE.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-05-12
|
1KB
|
42 lines
10 DIM S$(20),SY$(20),B$(30)
20 CLS:'ROMEN RAKAMINA ÇEVÿRÿ YAPAN PROGRAM. ROMENE.BAS
30 '
40 GOSUB 330:'SAYILAR
50 '
60 INPUT "SAYIYI GÿRÿN ",Z% :IF Z%=0 THEN END
70 IF Z%>3999 THEN BEEP :PRINT :PRINT "HATALI GÿRÿ₧" :END
80 SS$=STR$(Z%): U=LEN(SS$)
90 CLS:'
100 FOR Q=1 TO U
110 S$(Q)=MID$(SS$,Q,1) : NEXT
120 '
130 FOR Q=U TO 2 STEP -1 : L=L+1
140 A=ABS(VAL(S$(Q)))
150 ON L GOSUB 210,240,270,300
160 NEXT : PRINT Z%;"= ";
170 FOR Q=1 TO U
180 YS$=YS$+SY$(Q) : NEXT
190 UZ=LEN(YS$)
200 FOR DG=1 TO UZ: PRINT MID$(YS$,DG,1);" "; : NEXT : END
210 '1
220 IF A<>0 THEN SY$(Q)=B$(A)
230 RETURN
240 '2 (10)
250 IF A<>0 THEN SY$(Q)=B$(A+9)
260 RETURN
270 '3 (100)
280 IF A<>0 THEN SY$(Q)=B$(A+18)
290 RETURN
300 '4 (1000)
310 IF A<>0 THEN SY$(Q)=B$(A+27)
320 RETURN
330 ' SAYILAR
340 FOR S=1 TO 30
350 READ B$(S)
360 DATA I,II,III,IV,V,VI,VII,VIII,IX
370 DATA X,XX,XXX,XL,L,LX,LXX,LXXX,XC
380 DATA C,CC,CCC,CD,D,DC,DCC,DCCC,CM
390 DATA M,MM,MMM
400 NEXT
410 RETURN:' MURAT NECÿOªLU